package com.fit4as.fit
{
import flash.utils.Dictionary;

public class HashMap
{
    private var data : Dictionary = new Dictionary();

    public function containsKey(key : Object) : Boolean
    {
        return data[ key ] != null;
    }

    public function put(key : Object, value : Object) : void
    {
        data[ key ] = value;
    }

    public function get(key : Object) : Object
    {
        return data[ key ];
    }

    public function keySet() : Array
    {
        var result : Array = new Array();
        for (var key : Object in data)
        {
            result.push(key);
        }
        return result;
    }
}
}